<?php
/*
用户注册确认页
*/

include 'include/init.php';

$data=array();
$data['name']=$_POST['name'];
$data['account']=$_POST['account'];
$data['pwd']=$_POST['pwd'];
$data['email']=$_POST['email'];
$data['name']=$_POST['name'];

$usr=new userModel();

header('content-type:text/html;charset=utf-8');
if($usr->add($data))
{
	echo "注册成功<a href='login.html'>登录吧</a>";
}
else
{
	echo '注册失败';
}